import request from '@/util/request'

export const routerAdd = (data: any) => {
  return request({
    url: '/router',
    method: 'POST',
    data: data
  })
}
export const routerRemove = (id: number) => {
  return request({
    url: '/router',
    method: 'DELETE',
    params: {
      id: id
    }
  })
}
export const routerModify = (data: any) => {
  return request({
    url: '/router',
    method: 'PUT',
    data: data
  })
}
export const routerFind = () => {
  return request({
    url: '/router/list',
    method: 'GET'
  })
}
export const routerFindById = (id: number) => {
  return request({
    url: '/router',
    method: 'GET',
    params: {
      id: id
    }
  })
}
